package cn.buk.tms.eotms.dao;

import cn.buk.common.sc.CommonSearchCriteria;
import cn.buk.tms.eotms.entity.PaymentOrder;

import java.util.List;

/**
 * @author yfdai
 */
public interface PaymentOrderDao {
	
	
	int create(PaymentOrder order);
	
	PaymentOrder updatePaymentOrderDone(String orderId, double totalAmount, int status, String alipayTradeNo, String alipayBuyerId);

	List<PaymentOrder> searchPaymentOrder(int ownerId, int enterpriseId, CommonSearchCriteria sc);

	/**
	 * 通过支付订单号查找
	 * @param tradeNo 支付订单号
	 * @return
	 */
  PaymentOrder getPaymentOrderByTradeNo(String tradeNo);
}
